package com.sunjy.common.utils.mail;

import java.io.InputStream;

/**
 * Created by snowwolf-louis on 17/11/23.
 */
public class InputStreamMailAttach implements MailAttach {

    private InputStream is;
    private String fileName;

    public InputStreamMailAttach(InputStream is, String fileName) {
        this.is = is;
        this.fileName = fileName;
    }

    @Override
    public InputStream getInputStream() {
        return this.is;
    }

    @Override
    public String getFileName() {
        return this.fileName;
    }
}
